From: Oleksandr Tyshchenko Date: Thu, 5 Nov 2015 17:53:06 +0000 (+0200) Subject: xen/serial: Move any OMAP specific things to OMAP UART driver X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2267 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=961f129b5d88201c29967b202e0aa38081add1a6;p=xen.git xen/serial: Move any OMAP specific things to OMAP UART driver The 8250-uart.h contains extra serial register definitions for the internal UARTs in TI OMAP SoCs which are used in OMAP UART driver only. In order to clean up code move these definitions to omap-uart.c. Also rename some definitions to follow to the UART_OMAP* prefix. Signed-off-by: Oleksandr Tyshchenko CC: Ian Campbell CC: Julien Grall CC: Stefano Stabellini Cc: Jan Beulich Acked-by: Jan Beulich Acked-by: Ian Campbell --- diff --git a/xen/drivers/char/omap-uart.c b/xen/drivers/char/omap-uart.c index d8f64eaf78..5e666d6559 100644 --- a/xen/drivers/char/omap-uart.c +++ b/xen/drivers/char/omap-uart.c @@ -25,6 +25,25 @@ #define REG_SHIFT 2 +/* Register offsets */ +#define UART_OMAP_EFR 0x02 /* Enhanced feature register */ +#define UART_OMAP_MDR1 0x08 /* Mode definition register 1 */ +#define UART_OMAP_SCR 0x10 /* Supplementary control register */ +#define UART_OMAP_SYSC 0x15 /* System configuration register */ + +/* Enhanced feature register */ +#define UART_OMAP_EFR_ECB 0x10 /* Enhanced control bit */ + +/* Mode definition register 1 */ +#define UART_OMAP_MDR1_16X_MODE 0x00 /* UART 16x mode */ +#define UART_OMAP_MDR1_DISABLE 0x07 /* Disable (default state) */ + +/* Supplementary control register bitmasks */ +#define UART_OMAP_SCR_RX_TRIG_GRANU1_MASK (1 << 7) + +/* System configuration register */ +#define UART_OMAP_SYSC_DEF_CONF 0x0d /* autoidle mode, wakeup is enabled */ + #define omap_read(uart, off) readl((uart)->regs + (off<regs + (off<